package com.example.emall.wpq;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.view.View;
import android.widget.TextView;

import com.alibaba.android.arouter.launcher.ARouter;
import com.gemall.library.ui.LibraryBaseActivity;

public class MainActivity extends LibraryBaseActivity {

    // Used to load the 'native-lib' library on application startup.
//    static {
//        System.loadLibrary("native-lib");
//    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

//        hideBottomUIMenu(this);

//        setContentView(R.layout.activity_main);
//
//        // Example of a call to a native method
//        TextView tv = (TextView) findViewById(R.id.sample_text);
//        tv.setText(stringFromJNI());
//        startMqtt();
//
//  https://blog.csdn.net/chenzheng8975/article/details/76976122/
//
//        Intent intent=new Intent("com.example.testlist.fragment.TestListMainActivity"); startActivity(intent);

//        ARouter.getInstance().build("/testlist/TestListMainActivity").navigation(this);
//        ARouter.getInstance().build("/hsz/MainActivity").navigation();
//        ARouter.getInstance().build("/oa/MainActivity").navigation();
//        ARouter.getInstance().build("/vpn/VPNMainActivity").navigation();



        new Handler(Looper.myLooper()).postDelayed(new Runnable() {
            @Override
            public void run() {
                ARouter.getInstance().build("/testlist/TestListMainActivity").navigation(MainActivity.this);
//            ARouter.getInstance().build("/app/AdActivity").navigation(this);
                finish();

            }
        },2000);


    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    public void onWindowFocusChanged(boolean hasFocus) {
        super.onWindowFocusChanged(hasFocus);
        if(hasFocus){

        }
    }


    /**
     * A native method that is implemented by the 'native-lib' native library,
     * which is packaged with this application.
     */
    public native String stringFromJNI();
    public native void startMqtt();
}
